<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="row">
	<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-right">
		<t-auth:roleButton />
	</div>
</div>
<script type="text/javascript">



function printer(){
	var key=getKeyId();	
	if(isEditor(key)){
		if(radion(key)){
			top.openModal("/purchase/returnPurchase/outStockDetailPrint?key="+key,"outStock_form","采购退货单打印",1200,450);
		}
	}
}

function radion(key){
	if(key.indexOf(",") != -1){
		$.notify("该功能只用于单选!!","warning");
		return false;
	}
	return true;
}

function exportData(){
	var url=$.getVirtualPath()+"/purchase/report/exportExcel";
	var data=$("form:first").serialize();
	var cachedId=$.getText(url,data);
	downloadExcel(cachedId);
}
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/notifications.jsp"%>
